cd ../
rm -rf devel build
catkin_make

current_path=$(pwd)
echo $current_path

env_var=$(grep -c "source $current_path/devel/setup.bash" ~/.bashrc)

echo $env_var

if  [ $env_var -eq 0 ]; then
    echo "source $current_path/devel/setup.bash" >> ~/.bashrc 
fi

rospack list